package com.source.multithread.controller;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextStartedEvent;
import org.springframework.context.event.ContextStoppedEvent;
import org.springframework.stereotype.Component;

/**
 * @Author wengqy
 * @Date 2021/1/8
 *ContextRefreshedEvent
 * ContextStartedEvent
 * ContextStoppedEvent
 * ContextClosedEvent
 * RequestHandledEvent
 */
@Component
public class ApplicationListenerDemo3 implements ApplicationListener<ContextStoppedEvent> {


    @Override
    public void onApplicationEvent(ContextStoppedEvent contextStoppedEvent) {
        System.out.println("*********************************ContextStoppedEvent*************************");
    }
}
